package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j   // 输出日记，类似 log4j
@ServletComponentScan   //进行扫描过滤器的配置
@SpringBootApplication
@EnableTransactionManagement  //开启事务，多表关联，必须开
@EnableCaching // 开启 缓存 技术
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);

        // sfl4j 的日记功能（lombok）
        log.info("启动成功");
    }
}
